﻿using System.Collections;
using System.Collections.Generic;

namespace Library.Winform.Draw {
	public sealed class SelectedDrawEnumerable : IEnumerable<ObjectDraw> {
		private readonly IList<ObjectDraw> _list;
		public int Count { get { return _list.Count; } }
		public IEnumerator<ObjectDraw> GetEnumerator() {
			return _list.GetEnumerator();
		}

		IEnumerator IEnumerable.GetEnumerator() {
			return GetEnumerator();
		}

		internal SelectedDrawEnumerable(IList<ObjectDraw> list) {
			_list = list;
		}
	}
}
